﻿<ResourceDictionary
						xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">


	<Style TargetType="{x:Type RepeatButton}" x:Key="JoypadButtonStyle">
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type RepeatButton}">
					<Border Background="{TemplateBinding Background}">
						<Path x:Name="Arrow" Data="M-2.015372,-2.5626345 C1.3572597,-2.7628163 2.2492231,-2.7497418 2.0186118,0.98388672" HorizontalAlignment="Right" Margin="4" Height="13.661" Stretch="Uniform" Stroke="#FF3A4C7A"  Width="15.254" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Arrow" Property="Stroke" Value="Black" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style TargetType="RepeatButton" x:Key="DepthButtonStyle">
		<Setter Property="Background">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFD2E2F1" Offset="0"/>
					<GradientStop Color="#FFC6D2DE" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFAEBEFF" Offset="1"/>
					<GradientStop Color="#FF7F92EB" Offset="0"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderThickness" Value="1,1,1,0"/>
		<Setter Property="Foreground" Value="#FF5369DE"/>
		<Setter Property="Padding" Value="12,0"/>
		<Setter Property="Margin" Value="4,0"/>
		<Setter Property="Foreground" Value="#FF3A4C7A" />
		<Setter Property="FontSize" Value="14" />
		<Style.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Foreground" Value="Black" />
			</Trigger>
		</Style.Triggers>
	</Style>

	<Style TargetType="RepeatButton" x:Key="PlusButtonStyle" BasedOn="{StaticResource DepthButtonStyle}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton" >
					<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="5,5,0,0">
						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="RepeatButton" x:Key="MinusButtonStyle" BasedOn="{StaticResource DepthButtonStyle}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton" >
					<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="0,0,5,5">
						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style TargetType="Button" x:Key="ImageButtonStyle">
		<Setter Property="VerticalAlignment" Value="Center" />
		<Setter Property="Margin" Value="4 0" />
		<Setter Property="Background">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFD2E2F1" Offset="0"/>
					<GradientStop Color="#FFC6D2DE" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFAEBEFF" Offset="1"/>
					<GradientStop Color="#FF7F92EB" Offset="0"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderThickness" Value="1,1,1,1"/>
		<Setter Property="Foreground" Value="#FF5369DE"/>
		<Setter Property="Padding" Value="6,4"/>
	</Style>

	<Style TargetType="Button" x:Key="SelectButtonStyle">
		<Setter Property="Margin" Value="0" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="ClipToBounds" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button" >
					<Grid Background="{TemplateBinding Background}" ClipToBounds="True">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Stretch" />
						<Canvas x:Name="Arrow" Height="20" Width="18" Margin="4 2" Grid.Column="1" Visibility="Hidden" VerticalAlignment="Center">
							<Path Data="M0,0 14,10 L0,20" Stroke="#88000000" StrokeLineJoin="Round" StrokeThickness="3" VerticalAlignment="Center" />
						</Canvas>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Arrow" Property="Visibility" Value="Visible" />
							<Setter Property="Background" Value="#7EFFA500" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="Button" x:Key="RefreshButtonStyle">
		<Setter Property="Background" Value="#55FFFFFF" />
		<Setter Property="Margin" Value="2" />
		<Setter Property="Padding" Value="4 2" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button" >
					<Border BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
						<Image x:Name="Img" Opacity="0.8" Source="{StaticResource RefreshImageSource}" Stretch="None" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Img" Property="Opacity" Value="1" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="Button" x:Key="ResetButtonStyle" BasedOn="{StaticResource ImageButtonStyle}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button" >
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" CornerRadius="3">
            <Image x:Name="Img" Opacity="0.8" Source="{StaticResource UndoImageSource}" Stretch="None" />
					</Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
              <Setter TargetName="Img" Property="Opacity" Value="1" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

<Style TargetType="ButtonBase" x:Key="BaseMenuButtonStyle">
	<Setter Property="Margin" Value="0 0 3 0" />
	<Setter Property="Foreground" Value="#DD222222" />
    <Setter Property="Width" Value="8"/>
    <Setter Property="Height" Value="8"/>
	<Style.Triggers>
		<Trigger Property="IsMouseOver" Value="True">
			<Setter Property="Foreground" Value="#3C7FB1" />
		</Trigger>
	</Style.Triggers>
</Style>

  <Style TargetType="ToggleButton" x:Key="BaseMenuToggleButtonStyle" BasedOn="{StaticResource BaseMenuButtonStyle}">
    <Style.Triggers>
      <Trigger Property="IsChecked" Value="True">
        <Setter Property="Foreground" Value="Orange" />
      </Trigger>
    </Style.Triggers>
  </Style>
  
  <Style TargetType="Button" x:Key="ExitButtonStyle" BasedOn="{StaticResource BaseMenuButtonStyle}">
  	<Setter Property="ToolTip" Value="Exit" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
        	<Border Background="Transparent">
        		<Path Stroke="{TemplateBinding Foreground}" StrokeThickness="1.5" Data="M0,0 L8,8 M8,0 L0,8" />        		     	
			</Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  
  <Style TargetType="Button" x:Key="MinimizeButtonStyle" BasedOn="{StaticResource BaseMenuButtonStyle}">
  	<Setter Property="ToolTip" Value="Minimize" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
        	<Border Background="Transparent">
        		<Path Stroke="{TemplateBinding Foreground}" StrokeThickness="2" Data="M0,8 L8,8" />        		     	
			</Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="ToggleButton" x:Key="AboutButtonStyle" BasedOn="{StaticResource BaseMenuToggleButtonStyle}">
  	<Setter Property="ToolTip" Value="About" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
        	<TextBlock Text="?" FontSize="11" FontFamily="Tahoma" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0 0 0 0" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="ToggleButton" x:Key="SelectProcessButtonStyle" BasedOn="{StaticResource BaseMenuToggleButtonStyle}">
  	<Setter Property="ToolTip" Value="Select a process" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
        	<Border Background="Transparent">
        		<Canvas>
        			<Ellipse Width="6" Height="6" Stroke="{TemplateBinding Foreground}" StrokeThickness="1.5" />
	        		<Path Stroke="{TemplateBinding Foreground}" StrokeThickness="1.5" Data="M4.5,4.5 L8,8" />        		     	        			    		
				</Canvas>	
			</Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  
</ResourceDictionary>
